//
//  InformationViewController.m
//  JiJinFinance
//
//  Created by 李东晓 on 15/12/10.
//  Copyright © 2015年 LiDongXiao. All rights reserved.
//

#import "InformationViewController.h"
#import "InformationTableViewCell.h"
@interface InformationViewController ()<UITableViewDataSource,UITableViewDelegate>

@end

@implementation InformationViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"消息中心";
    
    [self.view setBackgroundColor:kGlobalBg];
    
    UITableView * Infmation = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, kUIScreenWidth, kUIScreenHeight) style:UITableViewStyleGrouped];
    
    [Infmation setBackgroundColor:kGlobalBg];
    
    [Infmation setDataSource:self];
    [Infmation setDelegate:self];
    
    [self.view addSubview:Infmation];
    
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 8;
}

-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
    return 45;
}

-(UITableViewCell * )tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString * cellId = @"cell";
    
    InformationTableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:cellId];
    
    if (cell == NO) {
        cell = [[InformationTableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellId];
    }
    return cell;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
